#include "widget.h"
#include "ui_widget.h"
#include<QLabel>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QLabel* label = new QLabel(this);
    label->setText("选择你的偶像练习生");
    label->move(150,200);

    // 创建字体对象
    QFont font;
    font.setFamily("仿宋");
    font.setPixelSize(30);
    font.setBold(true);
    font.setItalic(true);
    font.setUnderline(true);
    //font.setStrikeOut(true);

    // 把 font 对象设置到 label 中
    label->setFont(font);

    ui->pushButton_CR7->setToolTip("Siuuuuuuuuu!!!");
    ui->pushButton_CR7->setToolTipDuration(3000);

    ui->pushButton_kobe->setToolTip("Man!!!");
    ui->pushButton_kobe->setToolTipDuration(3000);
}

Widget::~Widget()
{
    delete ui;
}
